import request from '@/utils/request'

export default {
  //搜索签约分页查询
  getList(currentPage, pageSize, queryServiceDisplayVo) {
    return request({
      url: `/serviceDisplay/search/${currentPage}/${pageSize}`,
      method: 'post',
      data: queryServiceDisplayVo
    })
  },
  //搜索签约记录分页查询
  getAllServiceStatus(){
    return request({
      url: `/serviceStatus`,
      method: 'get'
    })
  },

  queryById(servicesId){
    return request({
      url: `/serviceDisplay/${servicesId}`,
      method: 'get'
    })
  },

  // 编辑
  edit(queryServiceDetailVo){
    return request({
      url: `/serviceDisplay`,  // 反单引号
      method: 'put',
      data: queryServiceDetailVo
    })
  },

  // 增加
  add(serviceSubmitVo){
    return request({
      url: `/serviceDisplay`,  // 反单引号
      method: 'post',
      data: serviceSubmitVo
    })
  },


}
